﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RESTAR_SEGUNDOS
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            
            segundos x = new segundos(Convert.ToInt32(txth.Text),Convert.ToInt32(txtm.Text),Convert.ToInt32(txts.Text));

            x.resta(Convert.ToInt32(txtr.Text));
            
            MessageBox.Show(Convert.ToString(x.imprimir()));
        }
    }
}
